
package com.eltonkent.ui.wrappers;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.eltonkent.R;

public class SafeEntriesListWrapper
{
	private final View base;
	private ImageView entryIcon;
	private TextView entryName;
	private TextView entryType;

	public SafeEntriesListWrapper(View baseView)
	{
		this.base = baseView;
	}

	public ImageView getEntryIcon()
	{
		if(entryIcon == null)
			entryIcon = (ImageView) base.findViewById(R.id.listIcon);
		return entryIcon;
	}

	public TextView getEntryName()
	{
		if(entryName == null)
			entryName = (TextView) base.findViewById(R.id.listLine1);
		return entryName;
	}

	public TextView getEntryType()
	{
		if(entryType == null)
			entryType = (TextView) base.findViewById(R.id.listLine2);
		return entryType;
	}
}
